<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        form {
            width: 460px;
            height: 550px;
            background-color: blueviolet;
            position: relative;
            margin: 50px auto;
            padding-top: 10px;
        }

        input[type="text"] {
            height: 40px;
            width: 250px;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            outline: none;
        }

        input[type="password"] {
            height: 40px;
            width: 250px;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            outline: none;
        }

        .username {
            top: 60px;
        }

        .password {
            top: 120px;
        }

        .tel {
            top: 180px;
        }

        .sex {
            width: 250px;
            position: absolute;
            top: 250px;
            left: 50%;
            transform: translateX(-50%);
        }

        button {
            width: 140px;
            height: 50px;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            background-color: deeppink;
        }

        .regist {
            top: 310px;
        }

        .login {
            top: 380px;
        }
        .check {
            position: absolute;
            top: 70px;
            right: 20px;
            font-size: 12px;
        }
        h1{
            text-align: center;
        }
    </style>
</head>

<body>
<form action="/regist" method="post">
    <h1>用户注册</h1>
    <input type="text" name="username" placeholder="姓名" class="username" autocomplete="off">
    <input type="password" name="password" placeholder="密码" class="password">
    <input type="text" name="tel" placeholder="电话号码" class="tel">
    <div class="sex">
        性别:
        <input type="radio" name="sex" value="男" class="sex1">男
        <input type="radio" name="sex" value="女" class="sex1">女
    </div>
    <button type="submit" class="regist">注册</button>
    <a href="login"><button class="login">登录</button></a>
</form>
</body>

</html>